package com.gzk.hrm.feign.client;

import com.gzk.hrm.domain.Login;
import com.gzk.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

public interface AuthFeign {

    /**
     * 保存login
     * @param login
     * @return
     */
    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    AjaxResult save(@RequestBody Login login);


    /**
     * 保存login和meal的中间表
     * @param map
     * @return
     */
    @RequestMapping(value = "/login/saveLoginMeal",method = RequestMethod.POST)
    AjaxResult saveLoginMeal(@RequestBody Map<String,Object> map);

}
